﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EvidenceManagement.Data.Common
{
    /// <summary>
    /// 
    /// </summary>
    public sealed class DataRepositoryFactory
    {
        
        #region Constructor
        
        /// <summary>
        /// Initializes the <see cref="RepositoryFactory"/> class.
        /// </summary>
        static DataRepositoryFactory()
        {            
        }
        
        #endregion

        #region Methods
        
        /// <summary>
        /// Creates the repository.
        /// </summary>
        /// <param name="connectionKey">The connection string setting key.</param>
        /// <returns></returns>
        public static IDataRepository CreateRepository(string connectionKey)
        {            
            return new DataRepository(connectionKey);
        }
        
        #endregion
    }
}
